package com.yy.xshell.process.commandhandler;

import com.yy.xshell.process.Handler;

/**
 * @author wxy
 * @version 1.0
 * @date 2024/8/20 18:00
 */
public class EndWithHandler extends Handler<String> {
    @Override
    public String handler(String command) {
        return command + " \n";
    }

    @Override
    public boolean accept(String command) {
        return !command.endsWith("\n");
    }
}
